.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #f5f5f5;
  background-image: url('https://img.freepik.com/free-photo/workspace-workplace-office-table_144627-40148.jpg');
  background-size: cover;
  background-position: center;
  padding: 20px;
  position: relative;
}

/* 登录页面语言选择器样式 */
.login-container .login-language-selector {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 100;
}

.login-container .login-language-selector .language-selector-trigger {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.login-container .login-language-selector .language-selector-trigger:hover {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.login-form-wrapper {
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 1);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-form {
  padding: 24px;
}

.login-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.login-header h2 {
  font-size: 20px;
  font-weight: 500;
  color: #333;
  margin: 0;
}

.close-btn {
  cursor: pointer;
  font-size: 14px;
  color: #999;
}

.close-btn:hover {
  color: #333;
}

/* 错误提示样式 */
.error-alert {
  background-color: #fff2f0;
  border: 1px solid #ffccc7;
  color: #ff4d4f;
  padding: 10px 15px;
  border-radius: 4px;
  margin-bottom: 16px;
  font-size: 14px;
  display: flex;
  align-items: center;
  animation: shake 0.5s linear;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.form-group {
  margin-bottom: 16px;
  position: relative;
}

.form-group input {
  width: 100%;
  height: 44px;
  padding: 10px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 14px;
  color: #333;
  transition: border-color 0.3s;
  outline: none;
}

.form-group input:focus {
  border-color: #1890ff;
}

.form-group input:disabled {
  background-color: #f5f5f5;
  cursor: not-allowed;
}

.password-group {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #999;
  font-size: 16px;
}

.login-btn {
  width: 100%;
  height: 44px;
  background-color: #1890ff;
  border: none;
  border-radius: 4px;
  color: white;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
}

.login-btn:hover:not(:disabled) {
  background-color: #40a9ff;
}

.login-btn:disabled {
  background-color: #bae0ff;
  cursor: not-allowed;
  opacity: 0.8;
}

.form-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  margin-bottom: 24px;
}

.forgot-password a, .register-link a {
  font-size: 14px;
  color: #1890ff;
  text-decoration: none;
}

.forgot-password a:hover, .register-link a:hover {
  color: #40a9ff;
}

.third-party-login {
  margin-top: 24px;
  text-align: center;
}

.third-party-login p {
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
}

.third-party-icons {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

.third-party-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  transition: transform 0.2s;
}

.third-party-icon:hover:not(.disabled) {
  transform: scale(1.1);
}

.third-party-icon.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.wechat {
  background-color: #07C160;
  color: white;
}

.qq {
  background-color: #12B7F5;
  color: white;
}

.agreement-text {
  font-size: 12px;
  color: #999;
  margin-top: 16px;
}

.agreement-text a {
  color: #1890ff;
  text-decoration: none;
}

.loading-screen {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  font-size: 16px;
  color: #1890ff;
}

/* 登录类型选择器样式 */
.login-type-selector {
  display: flex;
  margin-bottom: 20px;
  background-color: #f5f5f5;
  border-radius: 6px;
  padding: 4px;
}

.login-type-option {
  flex: 1;
  text-align: center;
  padding: 10px 16px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
}

.login-type-option:hover {
  background-color: #e6f7ff;
}

.login-type-option.active {
  background-color: #1890ff;
  color: white;
}

/* 验证码输入组样式 */
.verification-group {
  margin-bottom: 16px;
}

.verification-input-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

.verification-input-group input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.3s ease;
  outline: none;
  height: 44px;
  box-sizing: border-box;
}

.verification-input-group input:focus {
  border-color: #1890ff;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.verification-code-btn {
  padding: 12px 16px;
  background-color: #1890ff;
  color: white;
  border: 2px solid #1890ff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.3s ease;
  min-width: 100px;
  height: 44px;
  box-shadow: 0 2px 8px rgba(24, 144, 255, 0.3);
}

.verification-code-btn:hover:not(:disabled) {
  background-color: #40a9ff;
  border-color: #40a9ff;
  box-shadow: 0 4px 12px rgba(64, 169, 255, 0.4);
  transform: translateY(-1px);
}

.verification-code-btn:disabled {
  background-color: #ff7875;
  cursor: not-allowed;
  color: #fff;
  border: 2px solid #ff4d4f;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(255, 77, 79, 0.3);
}

@media (max-width: 480px) {
  .login-form-wrapper {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    box-shadow: none;
  }
  
  .login-type-selector {
    margin-bottom: 16px;
  }
  
  .login-type-option {
    padding: 8px 12px;
    font-size: 13px;
  }
  
  .verification-input-group {
    flex-direction: column;
    gap: 12px;
  }
  
  .verification-input-group input,
  .verification-code-btn {
    width: 100%;
  }
  
  .verification-code-btn {
    min-width: unset;
  }
}

/* 二次验证样式 */
.security-verification-content {
  padding: 20px;
}

.risk-user-notice, .location-notice {
  display: flex;
  align-items: center;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 8px;
  animation: slideIn 0.3s ease-out;
}

.risk-user-notice {
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
  color: #856404;
}

.location-notice {
  background-color: #d1ecf1;
  border: 1px solid #bee5eb;
  color: #0c5460;
}

.risk-icon, .location-icon {
  font-size: 24px;
  margin-right: 12px;
}

.risk-text, .location-text {
  flex: 1;
}

.risk-text strong, .location-text strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}

.verification-method-selector {
  margin-bottom: 20px;
}

.verification-method-selector label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.verification-method-select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  background-color: white;
  cursor: pointer;
}

.verification-method-select:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.verification-input-group {
  margin-bottom: 20px;
}

.code-input-group {
  display: flex;
  gap: 10px;
}

.verification-input {
  flex: 1;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.verification-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.send-code-btn {
  padding: 12px 20px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
  white-space: nowrap;
}

.send-code-btn:hover:not(:disabled) {
  background-color: #218838;
}

.send-code-btn:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
}

.verification-buttons {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.verify-btn {
  flex: 1;
  padding: 12px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.verify-btn:hover:not(:disabled) {
  background-color: #0056b3;
}

.verify-btn:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
}

.cancel-btn {
  flex: 1;
  padding: 12px;
  background-color: #6c757d;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.cancel-btn:hover {
  background-color: #545b62;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 二次验证响应式设计 */
@media (max-width: 480px) {
  .code-input-group {
    flex-direction: column;
  }
  
  .verification-buttons {
    flex-direction: column;
  }
  
  .risk-user-notice, .location-notice {
    flex-direction: column;
    text-align: center;
  }
  
  .risk-icon, .location-icon {
    margin-right: 0;
    margin-bottom: 8px;
  }
}

/* 登录页面语言选择器增强样式 */
.login-container .login-language-selector {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 100;
}

.login-container .login-language-selector .language-selector-trigger {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 248, 255, 0.98) 100%) !important;
  backdrop-filter: blur(15px) !important;
  border: 3px solid rgba(24, 144, 255, 0.7) !important;
  box-shadow: 0 8px 24px rgba(24, 144, 255, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.9) !important;
}

.login-container .login-language-selector .language-selector-trigger:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(230, 247, 255, 1) 100%) !important;
  border-color: rgba(24, 144, 255, 0.9) !important;
  box-shadow: 0 12px 32px rgba(24, 144, 255, 0.4), inset 0 3px 0 rgba(255, 255, 255, 0.95) !important;
  transform: translateY(-3px) !important;
}

.login-container .login-language-selector .language-selector-trigger.active {
  background: linear-gradient(135deg, rgba(230, 247, 255, 1) 0%, rgba(184, 233, 255, 1) 100%) !important;
  border-color: #1890ff !important;
  box-shadow: 0 12px 32px rgba(24, 144, 255, 0.5), inset 0 3px 0 rgba(255, 255, 255, 0.95) !important;
} 